package com.gency.subscribe.model.system;

import java.io.Serializable;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 
 * </p>
 *
 * @author 马行空
 * @since 2018-06-26
 */
@TableName("trd_order_base")
public class OrderBase extends Model<OrderBase> {

    private static final long serialVersionUID = 1L;

    @TableField("id")
	private Long id;
    /**
     * 创建时间
     */
    @TableField("create_time")
	private Date create_time;
    /**
     * 支付金额
     */
    @TableField("price")
	private BigDecimal price;
    /**
     * 1:初始化 2:成功 3:失败
     */
    @TableField("status")
	private Integer status;
    /**
     * 微信唯一编号
     */
    @TableField("open_id")
	private String openId;
    /**
     * 关联用户Id
     */
    @TableField("user_id")
	private Long userId;
    /**
     * 备注
     */
    @TableField("mark")
	private String mark;
    /**
     * 回调时间
     */
    @TableField("notif_time")
	private Date notifTime;
    /**
     * 回调内容
     */
    @TableField("notif_content")
	private String notifContent;
    
    
    private String extension_code;
    
    @TableField(exist=false)
    private String tel_phone;//用户电话号码
    
    @TableField(exist=false)
    private String amount;//赠送金额
    
    @TableField(exist=false)
    private Date rebate_time;//发送红包时间
    
    @TableField(exist=false)
    private String real_name;//真是姓名

    @TableField("flag_rebate")
    private Integer flag_rebate;//0:不需要返钱 1:未返钱 2:已返钱

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	
	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	public Date getNotifTime() {
		return notifTime;
	}

	public void setNotifTime(Date notifTime) {
		this.notifTime = notifTime;
	}

	public String getNotifContent() {
		return notifContent;
	}

	public void setNotifContent(String notifContent) {
		this.notifContent = notifContent;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public String getExtension_code() {
		return extension_code;
	}

	public void setExtension_code(String extension_code) {
		this.extension_code = extension_code;
	}

	public String getTel_phone() {
		return tel_phone;
	}

	public void setTel_phone(String tel_phone) {
		this.tel_phone = tel_phone;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public Date getRebate_time() {
		return rebate_time;
	}

	public void setRebate_time(Date rebate_time) {
		this.rebate_time = rebate_time;
	}
	
	public String getReal_name() {
		return real_name;
	}

	public void setReal_name(String real_name) {
		this.real_name = real_name;
	}

	public Integer getFlag_rebate() {
		return flag_rebate;
	}

	public void setFlag_rebate(Integer flag_rebate) {
		this.flag_rebate = flag_rebate;
	}

	@Override
	public String toString() {
		return "OrderBase{" +
			"orderNo=" + id +
			", createTime=" + create_time +
			", price=" + price +
			", status=" + status +
			", openId=" + openId +
			", userId=" + userId +
			", mark=" + mark +
			", notifTime=" + notifTime +
			", notifContent=" + notifContent +
			"}";
	}
}
